﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VRacer.Exceptions
{
    public class RemoteGameConnectionLostException : UIException, IVRacerException
    {
        public RemoteGameConnectionLostException(Exception innerException)
            : this("The connection with server was interrupted. Check if you have access to the Internet.", innerException)
        {

        }

        public RemoteGameConnectionLostException(string message, Exception innerException)
            : base(message, innerException)
        {
            Title = "Connection lost";
            Code = 2;
            Details = "Vector Racer uses 'scores.xml' file to store its highscores information for track. This message means that this application can't access this file. It is possible that this file was accidentally moved or renamed, otherwise you might need to reinstall this track.";
        }

        #region IVRacerException Members

        public bool Critical
        {
            get { return false; }
        }

        #endregion

    }
}
